8 const int MAXN
= 10000, MAXK
= 100;
18 if ( (0 <= n
&& n
<= MAXN
&& 0 <= k
&& k
<= MAXK
) == false ) while (1);
20 for (int i
=0; i
<n
; ++i
){
21 for (int j
=0; j
<k
; ++j
){
27 dp
[0][abs(a
[0])%k
] = true;
28 for (int i
=0; i
<n
-1; ++i
){
29 for (int j
=0; j
<k
; ++j
){
42 cout
<< (dp
[n
-1][0]?"D":"Not d") << "ivisible" << endl
;